//
//  DataAccess.h
//  protesteya
//
//  Created by Sebastian Bene on 11/3/13.
//  Copyright (c) 2013 Obligatorio Dispositivos Moviles. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Tweet.h"

@interface DataAccess : NSObject

@property (nonatomic, strong) NSManagedObjectModel *model;
@property (nonatomic, strong) NSPersistentStoreCoordinator *coordinator;
@property (nonatomic, strong) NSManagedObjectContext *context;

-(void) SetTweetFavorite:(NSString *)tweetId favorite:(BOOL)favorite;
-(void) SetTweetRetweeted:(NSString *)tweetId retweeted:(BOOL)retweeted;
-(Tweet *) GetTweet:(NSString *)tweetId;

@end
